package com.oocl.service.impl;

import java.util.List;

import com.oocl.dao.OrderDao;
import com.oocl.dao.impl.OrderDaoImpl;
import com.oocl.pojo.Orders;
import com.oocl.service.OrderManager;
import com.oocl.util.InstanceFactory;

public class OrderManagerImpl implements OrderManager {
	private OrderDao orderDao;
	
	public OrderManagerImpl() {
		orderDao = InstanceFactory.newInstance(OrderDaoImpl.class);
	}

	@Override
	public int addOrder(Orders order) {
		return orderDao.addOrder(order);
	}

	@Override
	public int addOrders(List<Orders> orders) {
		return orderDao.addOrders(orders);
	}

}
